package uml.structural.bridge.eg_2;

/**
 * on 2022/12/24 0:15
 */
public class BmpImage extends Image{
    @Override
    public Matrix parseFile(String file) {
        Matrix matrix = new Matrix(10, 20);
        System.out.println("解析文件【"+file+"】,后缀为bmp");
        return matrix;
    }

    @Override
    public void paint(String file) {
        Matrix matrix = parseFile(file);
        impl.printImage(matrix);
    }
}
